<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <% 
    
    session.getId();
    //设置编码
	request.setCharacterEncoding("utf-8");
	//登录信息
	String name = request.getParameter("name");
	String pwd = request.getParameter("pwd");
	
	/* Cookie newCookie=new Cookie("xtb","xtb");
	
	response.addCookie(newCookie);
	
	Cookie[] cookies=request.getCookies(); */
	
	if("admin".equals(name)&& "123".equals(pwd)){
		response.sendRedirect("welcome.jsp");
		
	}
	%>